package cn.iocoder.yudao.module.system.controller.admin.area.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;

@Schema(description = "管理后台 - 地区新增/修改 Request VO")
@Data
public class AreaSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String id;

    @Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "父id不能为空")
    private String pid;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "级别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "级别不能为空")
    private Integer level;

    @Schema(description = "父类集合", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "父类集合不能为空")
    private String pidCollect;

}